<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta name="Generator" content="68ECSHOP v4_2">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="Keywords" content="">
    <meta name="Description" content="">
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
    <title>淘嘟嘟网 - 我的购物车</title>
    <link rel="shortcut icon" href="favicon.ico">
    <link rel="icon" href="animated_favicon.gif" type="image/gif">
    <link rel="stylesheet" type="text/css" href="__CSS__/home/68ecshop_common.css" />
    <link rel="stylesheet" type="text/css" href="__CSS__/home/flow.css">
    <link rel="stylesheet" type="text/css" href="__CSS__/home/shopping.css"/>
    <script src="__JQ__" type="text/javascript" charset="utf-8"></script>
    <script src="__JS__/layer/layer.js" type="text/javascript" charset="utf-8"></script>
    <script src="__JS__/home/carsbuy.js" type="text/javascript" charset="utf-8"></script>
    <script src="__JS__/taodudu.lib.js" type="text/javascript" charset="utf-8"></script>
</head>

<body style="cursor:auto">

<!--F头部导航-->
<include file="Public/head_a"/>
<!--E头部导航-->

<div class="header w990">
    <div class="mall-logo">
        <a href="{:HOME_URL}"><img src="__IMG__/home/logo.png"></a>
    </div>
    <div class="shopping_main2_box Common">
        <div class="shopping_main2">
            <img src="__IMG__/home/cart/shop_03.png"><strong>购物车</strong>
            <p>提交订单后请在<span>20</span>分钟内完成支付</p>
        </div>
    </div>
</div>
<div class="block_jm w990">
    <if condition="($cart)">
        <div class="shopping_main3_box Common">
        <div class="shopping_main3 Common_a Common_a2">
            <ul>
                <li class="shopping_main3_li0"><input type="checkbox" value="000" /><strong>全选</strong></li>
                <li class="shopping_main3_li1"><strong>商品</strong></li>
                <li class="shopping_main3_li2"><strong>单价</strong></li>
                <li class="shopping_main3_li3"><strong>数量</strong></li>
                <li class="shopping_main3_li4"><strong>小计</strong></li>
                <li class="shopping_main3_li5"><strong>操作</strong></li>
            </ul>
        </div>
    </div>
        <form action="{:U('/Trader/cartBuy')}" method="post" id="myfrom" name="myform">
        <div class="shopping_main4_box Common">
        <foreach name="cart" item="v" key="k">
            <div class="shopping_main4 Common_a Common_a2 gouwu">
                <div class="shopping_main4_tittle">
                    <a href="/Supplier/{$k}" target="_blank">{$v[0]['store_name']}</a>
                </div>
            <foreach name="v" item="v1">
                <ul>
                    <li class="shopping_main4_li0">
                        <input checked="checked" type="checkbox" name="goods_id[]" value="{$v1['goods_id']}" />
                    </li>
                    <li class="shopping_main4_li1"><a href="/Goods/{$v1['goods_id']}" target="_blank"><img src="{$v1['goods_image']}"></a></li>
                    <li class="shopping_main4_li2">
                        <span class="shopping_main4_li2_span0"><a href="/Goods/{$v1['goods_id']}" target="_blank">{$v1['goods_title']}</a></span>
                        <span class="shopping_main4_li2_span2">{$v1['goods_attri_info']}</span>
                        <input type="hidden" name="guige[{$v1['goods_id']}]" value="{$v1['goods_attri_model']}" />
                    </li>
                    <li class="shopping_main4_li3">
                        <span class="shopping_main4_li3_much">{$v1['goods_price']}</span>
<!--                        <span>积分可抵<strong>50</strong></span>-->
                    </li>
                    <li class="shopping_main4_li4">
                        <a class="jian">-</a>
                        <input type="text" name="goods_num[{$v1['goods_id']}]" goods_id="{$v1['goods_id']}" onkeyup="this.value=this.value.replace(/[^\d]/g,'') " onafterpaste="this.value=this.value.replace(/[^\d]/g,'') " maxlength="3" value="{$v1['goods_num']}" />
                        <a class="jia">+</a>
                    </li>
                    <li class="shopping_main4_li5">
                        <strong>{$v1['goods_price'] * $v1['goods_num']}</strong>
<!--                        <span>积分可抵<strong>50</strong></span>-->
                    </li>
                    <li class="shopping_main4_li6">
                        <span><a class="shopping_main4_li6_a1" goods_id="{$v1['goods_id']}" onclick="del_goods($(this))">删除</a></span>
                        <span><a class="shopping_main4_li6_a2" onclick="favorites({$v1['goods_id']},20)">收藏</a></span></li>
                </ul>
            </foreach>
            </div>
        </foreach>
    </div>
        <div class="shopping_main5_box Common">
        <div class="shopping_main5">
            <ul class="shopping_main5_ul1">
                <li><input type="checkbox" value="000" /><i><i>全选</li>
                <li>
                    <a href="/">继续购物</a>
                </li>
                <li>
                    <a class="shopping_main5_ul1_a" onclick="q_del()">清空商品</a>
                </li>
            </ul>
            <ul class="shopping_main5_ul2">
                <li><span>已选商品<strong id="shuling">4</strong>件</span>总价(不包含运费)：<strong id="zong">￥100.00</strong></li>
                <li><input type="submit" class="jiesuan" value="结算" /></li>
            </ul>
        </div>
    </div>
    </form>
    <else />
        <div class="shopping_main3_box" style="text-align: center;line-height: 300px;font-size: 20px;"><a href="{:U('Index/index')}">购物车空空0.0...去购物</a></div>
    </if>
    <div class="blank15"></div>
    <div class="flowBox_jm">
        <div class="title_jm">
            <ul id="HotBoxTit">
                <li class="curr">其他人还买了</li>
            </ul>
        </div>
        <div class="flowHot" id="HotBox">
            <ul class="curr">
                <foreach name="wxdgoods" item="v">
                    <li>
                        <p class="pic"><a href="/Goods/{$v['goods_id']}" target="_blank"><img src="{$v['goods_thumb']}"></a></p>
                        <p class="name"><a href="/Goods/{$v['goods_id']}" target="_blank">{$v['goods_title']}</a></p>
                        <p><font class="price">￥{$v['goods_price']}</font></p>
                        <a class="j_AddCart" href="/Goods/{$v['goods_id']}"></a>
                    </li>
                </foreach>
            </ul>
        </div>
    </div>
</div>

<!--F底部-->
<div style="clear: both"></div>
<div class="site-footer">
    <div class="footer-related">
        <include file="Public/bootom_c" />
    </div>
</div>
</body>

</html>
<script>
    var Signin = <?php echo empty(session('user_id')) ? 0 : session('user_id'); ?>; //判断登录状态
    //底部选项卡
    $("#HotBoxTit > li").mouseenter(function(){
        $(this).addClass("curr").siblings().removeClass("curr");
        $("#HotBox > ul").eq($(this).index()).addClass("curr").siblings().removeClass("curr");
    });
</script>
